package com.witmed.mymdm.mvi

import com.witmed.lib_base.BaseEntity
import com.witmed.lib_base.BaseRepository
import com.witmed.lib_http.HttpType
import com.witmed.lib_http.NetWorkFactory
import com.witmed.mymdm.ApiService
import kotlinx.coroutines.flow.Flow

class SlashResp:BaseRepository() {

    //请求查询是否锁屏
    fun selLock():Flow<BaseEntity>{
        val selLock = NetWorkFactory.factory(HttpType.NONE).create(ApiService::class.java)
            .selLock()
        return selLock
    }

    //查看白名单
    fun selWhite():Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE).create(ApiService::class.java)
            .selWhite()
    }
}